add_library(wayland MODULE waylandmodule.cpp)
target_link_libraries(wayland Fcitx5::Core Wayland::Client Fcitx5::Wayland::Core)
set_target_properties(wayland PROPERTIES PREFIX "")
install(TARGETS wayland DESTINATION "${FCITX_INSTALL_ADDONDIR}")
fcitx5_translate_desktop_file(wayland.conf.in wayland.conf)
install(FILES "${CMAKE_CURRENT_BINARY_DIR}/wayland.conf" DESTINATION "${FCITX_INSTALL_PKGDATADIR}/addon")
fcitx5_export_module(Wayland TARGET wayland BUILD_INCLUDE_DIRECTORIES "${CMAKE_CURRENT_SOURCE_DIR}" HEADERS wayland_public.h INSTALL)
